﻿using System;
using System.Collections.Generic;
using System.Text;
using yb.commerce.DAL;
using yb.commerce.Model;
namespace yb.commerce.BLL
{
    public class ModuleRoleBusiness
    {
        public bool Add(ModuleRole moduleRole)
        {
            return new ModuleRoleDAO().Add(moduleRole);
        }

        public bool Delete(int Id)
        {
            return new ModuleRoleDAO().Delete(Id);
        }

        public bool Update(ModuleRole moduleRole)
        {
            return new ModuleRoleDAO().Update(moduleRole);
        }

        public ModuleRole GetEntity(int Id)
        {
            return new ModuleRoleDAO().GetEntity(Id);
        }

        public DataRecordTable GetList(string fieldList, string orderField, bool orderBy, int pageIndex, int pageSize, string where)
        {
            return new ModuleRoleDAO().GetList(fieldList,orderField,orderBy,pageIndex,pageSize,where);
        }
        public bool IsHaveRecord(ModuleRole moduleRole)
        {
            return new ModuleRoleDAO().IsHaveRecord(moduleRole);
        }
        public bool Delete(ModuleRole moduleRole)
        {
            return new ModuleRoleDAO().Delete(moduleRole);
        }
    }
}
